{include app:admin.inc.header}
<!--tmpl-resource-->
{include app:admin.inc.top}


<div class="container-fluid content-body">
    <div class="main">
        <!-- left side start-->
        {include admin.inc.menu}
        <!-- left side end-->


        <!-- main content start-->
        <section class="right-section" id="right-section">
            <!-- start of inner-frame -->
            <div class="inner-iframe">

                <!-- page breadcrumb start-->
                {include admin.inc.bread}
                <!-- page "breadcrumb end-->
                <!-- Nav tabs -->
                <ul class="nav nav-tabs">

                    <li class="active"><a href="javascript:void(0);"><i class="glyphicon glyphicon-plus"></i> 添加仓库</a>
                    </li>
                    <li>
                        <a href="{$index_url}"><i class="glyphicon glyphicon-th-list"></i>仓库列表</a>
                    </li>


                </ul>
                <div class="inner-container">
                    <form role="form" class="form-horizontal basicForm content-add-form" id="content-add-form"
                          autocomplete="off">
                        <div class="form-group">
                            <label class="col-sm-2 control-label"><span
                                    class="asterisk">*</span>仓库名称</label>
                            <div class="col-sm-4">

                                <input type="text" class="form-control" required placeholder="仓库名称" cname="仓库名称" name="data[name]"
                                       value="" data-name="仓库名称">
                            </div>
                            <p class="help-block">

                        </div>

                        <div class="form-group">
                            <label class="col-sm-2 control-label"><span class="asterisk">*</span>仓库面积(㎡)</label>
                            <div class="col-sm-4">

                                <input dtype="" class="form-control" maxlength="20" name="data[area]"
                                       placeholder="仓库面积" required cname="仓库面积" value=""/>

                            </div>
                            <p class="help-block"></p>

                        </div>

                        <div class="form-group">
                            <label class="col-sm-2 control-label"><span class="asterisk">*</span>性质</label>
                            <div class="col-sm-4">
                                <div class="rdio rdio-default">
                                    <input type="radio" name="data[type]" value="1" id="radio1"
                                           checked="checked">
                                    <label for="radio1">自营</label>
                                </div>
                                <div class="rdio rdio-primary">
                                    <input type="radio" name="data[type]" value="2" id="radio2">
                                    <label for="radio2">第三方</label>
                                </div>
                            </div>
                        </div>

                        <!-- input -->
                        <div class="form-group">
                            <label class="col-sm-2 control-label"><span class="asterisk">*</span>联系人</label>
                            <div class="col-sm-4">

                                <input dtype="" class="form-control" maxlength="{maxlength}" name="data[contact]"
                                       placeholder="联系人" required cname="联系人" value=""/>
                            </div>
                            <p class="help-block"></p>

                        </div>

                        <!-- input -->
                        <div class="form-group">
                            <label class="col-sm-2 control-label"><span class="asterisk">*</span>联系电话 </label>
                            <div class="col-sm-4">

                                <input dtype="mobile" class="form-control" maxlength="{maxlength}" name="data[contact_mobile]"
                                       placeholder="联系电话" required cname="联系电话" value=""/>
                            </div>
                            <p class="help-block"></p>

                        </div>

                        <div class="form-group">


                            <label class="col-sm-2 control-label"><span class="asterisk">*</span>仓库地址</label>

                            <div id="city" class="col-sm-8">
                                <div class="area-wrap"></div>
                                <p class="help-block"></p>

                            </div>

                        </div>

                        <div class="form-group">
                            <label class="col-sm-2 control-label"></label>

                            <div class="col-sm-4">
                                <input dtype="" class="form-control" maxlength="{maxlength}" name="data[street]"
                                       placeholder="街道地址" required cname="街道地址" value="宏图路129号"/>
                            </div>
                            <p class="help-block"></p>

                        </div>


                        <!--tmpl-assocfields-->
                        <div class="btn-group btn-group-or">
                            <a href="{if $id==''}{$do_add_url}{else}{$do_edit_url}?id={$id}{/if}"
                               class="btn btn-primary ajaxproxy"
                               proxy='{"method":"post", "location":"index"}'>提交保存</a>

                        </div>
                    </form><!-- content add form -->
                </div>
            </div><!-- end of inner -->
        </section>
    </div>
</div>
{include admin.inc.footer}

<!-- pagescript -->
<script type="text/javascript">
    seajs.use("admin/repertoryadd", function (parameter) {


        parameter.upload_url = "{$upload_url}";
        parameter.image_search_url = "{$image_search_url}";
        parameter.image_list_url = "{$image_list_url}";
        parameter.area={
            prov : 0, //省
            city : 0, //市s
            dist : 0 //区
        };
        parameter.init();
    });
</script>


</body>
</html>
